/*
 * @Description: 取对象中包含的函数
 * @Autor: lcz
 * @Date: 2022-10-31 11:19:05
 * @LastEditors: lcz
 * @LastEditTime: 2022-10-31 12:37:59
 */

export function pick<T extends object, K extends keyof T>(obj: T, keys: K[]): Pick<T, K> {
  const ret: any = {};
  for (const key of keys) {
    ret[key] = obj[key];
  }
  return ret;
}
